<template>
  <div>
    <div class="fu">
      <router-link to="/">首页</router-link>
      <div v-for="item in navData">
        <router-link :to="item.path">{{ item.title }}</router-link>
      </div>
    </div>
    <div class="zhu">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
// import HelloWorld from './components/HelloWorld.vue'
// import Publicitv from './components/Publicitv.vue';
// import Rep from './components/Rep.vue';
// import Event from './views/event/index.vue'

import { navData } from '@/untils/nav'

export default {
  name: 'App',
  components: {
    // HelloWorld,
    // Publicitv,
    // Event,
    // Rep,
  },
  setup() {
    return {
      navData
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.fu{
  position: absolute;
  left: 50px;
  z-index: 999;
}
</style>
